package org.enhance.local.tq.producer;

import lombok.extern.slf4j.Slf4j;
import org.enhance.local.tq.factory.TaskQueueClientFactory;
import org.enhance.local.tq.message.TaskObj;

@Slf4j
public class TqProducer {
    // ---------------------- produce message ----------------------
    public static void produce(TaskObj task){
        try {
            TaskQueueClientFactory.addTask(task);
        } catch (Exception e) {
            log.error(e.getMessage(), e);
        }
    }
}
